package com.cu.jiekong.constants;

/**
 * 返回内容错误码
 * 000000 为成功
 * 1开头为各种业务异常
 * 2开头为请求的校验异常
 * 3开头为运行异常
 * 4开头为系统间交互异常
 * 其他待定
 *
 * @author jintian
 * @date 10:09
 */
public enum ResultStatus {

    RESULT_000000("000000", "成功"),
    RESULT_100000("100000", "未登录，请先登录"),
    RESULT_100001("100001","参数异常"),
    RESULT_400001("400001","签名异常"),
    RESULT_400002("400002","网络访问异常"),
    RESULT_999999("999999", "系统异常");

    private String code;

    private String msg;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultStatus(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
